public class test2 {
    public static void main(String[] args) {
        String s1="abc";
        String s2=new String("Abc");

        System.out.println(s1==s2);

        boolean result = s1.equals(s2);
        System.out.println(result);

        //忽略了大小写
        boolean result1=s1.equalsIgnoreCase(s2);
        System.out.println(result1);
    }
}
